/*
	File:		BackstabBot.h
	Author:		Ben Feldmann
	Purpose:	Class to manage game BackstabBot enemies
*/

#pragma once

#include "Enemy.h"
#include "AnimationSystem.h"
#include "Animation.h"

class BackstabBot : public Enemy 
{
	int animationID;
	Animation enemy;
public:
	BackstabBot();

	~BackstabBot();

	void Update(float elapsed);

	void Render();

	//bool CheckCollision(IEntity* base);

	void Attack();

	RECT GetRect()
	{
		RECT tmp = enemy.GetCollsionRect();
		tmp.top = tmp.top + GetY();
		tmp.bottom = tmp.bottom + GetY();
		tmp.left = tmp.left + GetX();
		tmp.right = tmp.right + GetX();
		return tmp;
	}

	void SetAnimationID(int id)	
	{
		animationID = id;
		enemy = *AnimationSystem::GetInstance()->GetAnimation(animationID);
		//enemy.Play(false);
	}
};
